<html><head>

        <link href="<?php echo base_url('assets/css/formpindahpergi.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Pindah pergi</title>
    </head>
    <body>
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="8" class="trheader">Laporan Pindah Pergi Penduduk</td>
            </tr>
            <tr>
                <td colspan="8" bordercolor="#666666" class="trheader">Kategori : Per Nomor Kartu Keluarga</td>
            </tr>
            <tr>
                <td colspan="2" bordercolor="#666666" class="cari">&nbsp;</td>
                <td bordercolor="#666666" class="cari">&nbsp;</td>
                <td colspan="10" bordercolor="#666666" class="cari">&nbsp;</td>
            </tr>
          <form action="<?php echo base_url('pindah_pergi/cari_nokk'); ?>" method="post" enctype="multipart/form-data">
            <tr>            
                <td colspan="14" bordercolor="#666666" class="cari">Cari KK : 
                    <label>
                        <input type="text" name="no_kk" id="no_kk" class="textinput" placeholder="Nomor KK" />
                    </label>                
                    <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
            </tr>
          </form>
          <tr>
                  <td colspan="8" bordercolor="#666666" class="tampilcari">&nbsp;</td>
                </tr>
                <tr>
                <td colspan="8" bordercolor="#666666" class="tampilcari"><div align="center">Data Penduduk Pindah dengan No. KK : <?php echo isset($kk_pindah_pergi->no_kk) ? $kk_pindah_pergi->no_kk : ''; ?></div></td>
                </tr>
            <tr>
                <td colspan="8" class="jeda">&nbsp;</td>
            </tr>
            <tr>
              <td width="25"><div align="center"><strong>No.</strong></div></td>
              <td width="166"><div align="center"><strong>No. Form</strong></div></td>
              <td width="112"><div align="center"><strong>NIK</strong></div></td>
              <td width="125"><div align="center"><strong>Nama Pemohon</strong></div></td>
              <td width="156"><div align="center"><strong>Alamat</strong></div></td>
              <td width="244"><div align="center"><strong>Alamat Tujuan</strong></div></td>
              <td width="125"><div align="center"><strong>Tanggal Pindah</strong></div></td>
          </tr>
            <?php
            if (isset($pindah_pergi)) {
                $no = 1;
                foreach ($pindah_pergi->result() as $data_pindahpergi) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td>' . $data_pindahpergi->form . '</td>';
                    echo '<td>' . $data_pindahpergi->nik_pemohon . '</td>';
                    echo '<td>' . $data_pindahpergi->nama_pemohon . '</td>';
                    echo '<td> RT ' . $data_pindahpergi->rt.' RW '.$data_pindahpergi->rw.' Dusun '.$data_pindahpergi->dusun.'</td>';
                    echo '<td>' . $data_pindahpergi->alamat . ' RT ' . $data_pindahpergi->rt . ' RW ' . $data_pindahpergi->rw .
                    ' Dusun ' . $data_pindahpergi->dusun_tujuan . ', Desa ' . $data_pindahpergi->desa_tujuan .
                    ', Kec. ' . $data_pindahpergi->kecamatan_tujuan . ', Kab. ' . $data_pindahpergi->kabupaten_tujuan .
                    ', Prop. ' . $data_pindahpergi->propinsi_tujuan . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_pindahpergi->tgl_pergi) . '</td>';
                    echo '</tr>';
                }
            }
            ?>
        </table>
    </body>
</html>
